getThemeAttrColor

open fun getThemeAttrColor(@NonNull context: @NonNull Context, attr: Int): Int(source)

Resolves the color from the provided theme attribute.

Return

Resolved color.

Parameters

context

Context. Must be non-null.

attr

Theme attribute for resolving color.